
const req = require.context('./svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys()
import iconfontIcons from './svg-iconfont-icons'

const re = /\.\/(.*)\.svg/
let iconArray = [];
requireAll(req).forEach(i => {
  let iconName = i.match(re)[1];
  if(!iconArray.includes(iconName)){
    iconArray.push(iconName)
  }else{
    console.log(iconName)
  }
})
const icons = iconArray;
export default icons;
